<?php View::content(); ?>
<div id="register">
	<p align="center"><span class="title_form"><?php echo ucfirst(_("register")); ?></span></p>
	<?php echo Form::open("register/register", "post", array("id" => "form-registro", "name" => "form-registro", "class" => "form_padding")); ?>
		<table class="table_input_form">
			<tr>
			        <td><?php echo ucfirst(_("user")); ?>:</td>
				<td class="tdinput"><?php echo Form::text("register[account]", array("class" => "texto validate['required','length[5,14]','alphanum','~verify_field']", "maxlength" => "14", "tabindex" => "1")); ?></td>
				<td style="width: 10px;">&nbsp;</td>
				<td><?php echo ucfirst(_("first name")); ?>:</td>
				<td class="tdinput"><?php echo Form::text("register[firstname]", array("class" => "texto validate['required','length[1,50]','alphanum']", "tabindex" => "4")); ?></td>
			</tr>
			<tr>
				<td><?php echo ucfirst(_("password")); ?>:</td>
				<td class="tdinput"><?php echo Form::pass("register[password]", array("class" => "texto validate['required']", "title" => ucfirst(_("password")), "tabindex" => "2")); ?></td>
				<td>&nbsp;</td>
				<td><?php echo ucfirst(_("last name")); ?>:</td>
				<td class="tdinput"><?php echo Form::text("register[lastname]", array("class" => "texto validate['required','length[1,50]','alphanum']", "tabindex" => "5")); ?></td>
			</tr>
			<tr>
                                <td><?php echo ucfirst(_("re-enter password")); ?>:</td>
				<td class="tdinput"><?php echo Form::pass("register[passAgain]", array("class" => "texto validate['confirm:register[password]']", "tabindex" => "3")); ?></td>
				<td>&nbsp;</td>
				<td><?php echo ucfirst(_("e-mail")); ?>:</td>
				<td class="tdinput"><?php echo Form::text("register[email]", array("class" => "texto validate['required','email','~verify_field']", "tabindex" => "6")); ?></td>
			</tr>
			<tr>
				<td colspan="4">
					<div id="message-alternative-captcha" style="visibility: hidden;">
						<span style="color: #ba0f0f;">Clic en la imagen para recargar el código de validación -&gt;</span>
					</div>
				</td>
				<td>
				<?php 
					$onmouseover = "$('message-alternative-captcha').fade('in');";
					$onmouseout = "$('message-alternative-captcha').fade('out');";
					$onclick = "this.src = '" . PUBLIC_PATH . "captcha/" . "?' + Math.random();";
					echo Html::img("../captcha/", 
								"CAPTCHA Img", 
								array("style" => "width: 100px; cursor: pointer;", 
									"onclick" => $onclick,
									"onmouseover" => $onmouseover,
									"onmouseout" => $onmouseout
									)
								);
				?>
				</td>
			</tr>
			<tr>
				<td colspan="3"></td>
				<td><?php echo ucfirst(_("code verification")); ?>:</td>
				<td class="tdinput"><?php echo Form::text("captchacode", array("class" => "texto validate['required','~verify_field']", "tabindex" => "7")); ?></td>
			</tr>
			<tr>
				<td></td>
				<td colspan="3"><?php echo Html::link("articles", ucfirst(_("I accept terms of service")), "class: linkdecoration")?>:</td>
				<td class="tdinput" style="text-align: left;"><?php echo Form::input(array("name" => "tos", "type" => "checkbox", "class" => "validate['required']", "style" => "margin-left: 5px;", "tabindex" => "8")); ?></td>
			</tr>
			<tr><td colspan="5">&nbsp;</td></tr>
			<tr>
				<td colspan="3">&nbsp;</td>
				<td colspan="2">
					<?php echo Form::input(array("name" => "cancel", "type" => "reset", "class" => "boton", "style" => "margin-right:5px;", "value" => ucfirst(_("cancel")), "tabindex" => "9")); ?>
					<?php echo Form::submit(ucfirst(_("send")), array("class" => "boton", "tabindex" => "10")); ?>
				</td>
			</tr>	
		</table>
	<?php echo Form::close(); ?>
</div>